//========================================================================
// *作者：海盗猫  主页：ilplay.com
// *脚本：HDMExcel
// *描述：
// *?2021 MYJL . All rights reserved.
//* ======================================================================


#if(UNITY_EDITOR)
using UnityEngine;
using TextEditor = UnityEditor.UI.TextEditor;
using UnityEditor;

namespace HDMCode.Excel
{
	
	[CustomEditor(typeof(HDMText), true)]
	[CanEditMultipleObjects]
	public class HDMTextEditor : TextEditor
	{
        [Tooltip("用于激活配置表文本")]
        SerializedProperty _excelType;

        protected override void OnEnable()
        {
            base.OnEnable();
            _excelType = serializedObject.FindProperty("_excelType");
        }

        public override void OnInspectorGUI()
        {
            serializedObject.Update();
            HDMText.SetCountry();
            base.OnInspectorGUI();
            EditorGUILayout.PropertyField(_excelType);
            serializedObject.ApplyModifiedProperties();
        }
    }
}

#endif
